package com.mystore.entity;

import java.io.Serializable;

/**
 * 购物车
 */
public class Cart implements Serializable{
    private static final long serialVersionUID = 7855012779410697508L;
    private int id;
    private int uid;
    private int gid;
    private int num;

    public Cart() {
    }

    public Cart(int uid, int gid) {
        this.uid = uid;
        this.gid = gid;
    }

    public Cart(int uid, int gid, int num) {
        this.uid = uid;
        this.gid = gid;
        this.num = num;
    }

    public Cart(int id, int uid, int gid, int num) {
        this.id = id;
        this.uid = uid;
        this.gid = gid;
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
